home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
031a
/
desutl20.zip
/
TEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-11-29
|
1KB
|
51 lines
@ECHO OFF
REM the following line runs windows
WIN
REM the following line parses the file created by ExitW and
REM modifies the environment variables or returns a DOS errorlevel
REM code. It can also do both or neither of the above.
REM note that this example uses a data file contained in C:\WIN
EXITWDOS C:\WIN\EXITW.DAT
REM if the errorlevel code is 200 then just go to DOS
IF ERRORLEVEL 200 GOTO END
REM if the returned error level code is 3 then run autocad
IF ERRORLEVEL 3 GOTO AUTOCAD
REM if the returned code is 2 then run wordperfect
IF ERRORLEVEL 2 GOTO WORDP
REM if the code is 1 then run lotus
IF ERRORLEVEL 1 GOTO LOTUS
REM if the errorlevel code is none of the above then just exit to DOS
GOTO END
:AUTOCAD
REM run autocad
CD \AUTOCAD
ACAD
REM now call this batch file to start the cycle again
WINBAT
:WORDP
REM run WordPerfect
CD \WP
WP
REM now call this batch file to start the cycle again
WINBAT
:LOTUS
REM run 123
CD \123
123
REM now call this batch file to start the cycle again
WINBAT
:END
REM jumping to this point just dumps the user back to DOS